package com.wiscamp.ninechapters.problems.infrastructure.po.tasks;

//import com.fasterxml.jackson.annotation.JsonBackReference;

import com.wiscamp.ninechapters.ddd.PersistenceObject;
import jakarta.persistence.*;
import lombok.Data;

import java.io.Serial;

/**
 * 习题集分发记录明细
 *
 * @author yifeng
 */
@Entity
@Data
@Table(name = "assignment_details")
public class AssignmentDetailPO implements PersistenceObject {
    @Serial
    private static final long serialVersionUID = -3279789477923317622L;

    /**
     * 明细编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(insertable = false, name = "detail_id", nullable = false)
    private long detailId = 0;

    /**
     * 分发编号
     */
    @Column(name = "assignment_id", nullable = false)
    private long assignmentId;

    /**
     * 关联编号
     */
    @Column(name = "reference_id", nullable = false)
    private long referenceId = 0;

}